import request from "@/utils/request";
import { AxiosPromise } from "axios";
import {FileAuditQuery} from "@/api/fileAudit/types";
import {RuleForm} from "@/api/auditRule/types";
import {AuditVO} from "@/api/audit/types";

/**
 * 标准核销单分页数据
 *
 * @param queryParams
 */
export function getFileAuditPage(
	queryParams: FileAuditQuery
): AxiosPromise<PageResult<[]>> {
	return request({
		url: '/api/v1/fileAudit/page',
		method: 'get',
		params: queryParams
	});
}

/**
 * 获取归档核销单数据
 *
 * @param queryParams
 */
export function getFileAuditDetail(id: number, billMonth: any): AxiosPromise<AuditVO> {
	return request({
		url: '/api/v1/fileAudit/' + id + '/' + billMonth,
		method: 'get'
	});
}

/**
 * 已归核销单档调账处理功能
 *
 * @param queryParams
 */
export function antiAudit(id: number, billMonth: string) {
	return request({
		url: '/api/v1/fileAudit/antiAudit/' + id + '/' + billMonth,
		method: 'get'
	});
}


